<template>
  <footer class="footer">
    <div class="status-info">
      <span class="status-item">
        <span class="status-dot" :class="{ 'online': isApiOnline }"></span>
        API状态: {{ isApiOnline ? '在线' : '离线' }}
      </span>
      <span class="status-item">
        模型: {{ modelInfo }}
      </span>
    </div>
  </footer>
</template>

<script>
export default {
  props: {
    isApiOnline: {
      type: Boolean,
      required: true,
      default: false
    },
    modelInfo: {
      type: String,
      required: true,
      default: '检查中...'
    }
  }
}
</script>

<style scoped>
.footer {
  background: #f8f9fa;
  padding: 20px;
  border-top: 1px solid #dee2e6;
  width: 100%;
  margin-top: 40px;
}

.status-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #7f8c8d;
  gap: 30px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
}

.status-dot.online {
  background: #28a745;
}

/* 移动设备适配 */
@media (max-width: 768px) {
  .status-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
</style>